import os
import json

def file_exists(file_path):
    return os.path.isfile(file_path)


file_path = './data/ini.json'

# 打开文件并读取内容
with open(file_path, 'r', encoding='utf-8') as file:
    content = json.loads(file.read())
    # print(content)


def data(key):
    global content
    if file_exists(file_path):
        return content[key]
    else:
        return False
